package com.golxen.framework.common;


import com.golxen.framework.common.server.game.config.GameConfig;
import com.golxen.framework.db.DbPlugin;

public class GameParamPlugin {

    static GameParamPlugin instance = null;

    public static void start() {
        if (instance != null) {
            return;
        }

        instance = new GameParamPlugin();

        if (!DbPlugin.active()) {
            throw new RuntimeException("plugin depend on DbPlugin not active!!");
        }
        
        GameConfig.refresh();
    }

    public static boolean active() {
        return instance != null;
    }

}
